﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;

namespace Mercenary
{
	// Token: 0x0200000D RID: 13
	public static class TaskAdapter
	{
		public static void SetTask(int taskId, int mercenaryId, string title, string desc, List<Task> tasks, string progressMessage)
		{
			//难完成的
			//闪狐 任务14:唰！ 2装备成就解锁，加速等级不够

			// 对于优先使用多个英雄配合的，优先级设为0，保证一起出场
			// 未满30级的佣兵 优先级设为10，放后备箱里跟着升级
			// 部分要求地图的基本优先级都是5（正常）挨个排着
			// 英雄悬赏优先度为1，为了能早日排进H1-1的地图
			UtilsLog.Log(string.Format("[TID:{0}][MID:{1}] {2} {3} {4}",
				taskId, mercenaryId, title, desc, progressMessage));

			switch (mercenaryId)
			{
				case MercConstId.乌瑟尔_光明使者:
					{
						//乌瑟尔 任务12
						if (title.Contains("光明使者"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "复仇之怒", 1),
								TaskAdapter.GetMercenary(MercConstId.先知维伦, "维伦的祝福", 0),
								TaskAdapter.GetMercenary(MercConstId.考内留斯_罗姆, "牺牲祝福", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.亚煞极:
					{
						//亚煞极 任务3:愤怒即是力量
						//亚煞极 任务10:饱受折磨
						if (title.Contains("愤怒即是力量") || title.Contains("饱受折磨"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "无羁之怒", 0),
								TaskAdapter.GetMercenary(mercenaryId, "亚煞极之力", 0),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.赤精, "振奋之歌", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.伊利丹_怒风:
					{
					}
					break;


				case MercConstId.伊瑞尔:
					{
						//伊瑞尔 任务3:惩戒不信之徒
						//伊瑞尔 任务10:净化邪恶
						if (title.Contains("惩戒不信之徒") || title.Contains("净化邪恶"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "光缚之怒", 0),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.赤精, "振奋之歌", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.伊莉斯_逐星:
					{
					}
					break;


				case MercConstId.先知维伦:
					{
						//先知维伦 任务12
						if (title.Contains("圣光扫荡一切"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "裂解之光", 1),
								TaskAdapter.GetMercenary(MercConstId.安度因_乌瑞恩, "神圣新星", 0)
							}));
							return;
						}
						//先知维伦 任务17
						if (title.Contains("完美圣光"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "裂解之光", 1),
								TaskAdapter.GetMercenary(MercConstId.泽瑞拉, null, 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.光明之翼:
					{
					}
					break;


				case MercConstId.冰雪之王洛克霍拉:
					{
						//雪王 任务12
						if (title.Contains("雪球滚滚"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "雪球", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
							}));
							return;
						}
					}
					break;


				case MercConstId.凯恩_血蹄:
					{
						//任务14 - 踩在蹄下
						if (title.Contains("踩在蹄下"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "大地践踏", 1),
								TaskAdapter.GetMercenary(mercenaryId, "坚韧光环", 1),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
							}));
							return;
						}

					}
					break;


				case MercConstId.凯瑞尔_罗姆:
					{
					}
					break;


				case MercConstId.剑圣萨穆罗:
					{
					}
					break;


				case MercConstId.加尔范上尉:
					{
						//加尔范上尉 任务9:贯穿伤口
						if (title.Contains("贯穿伤口"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "致命打击", 1),
								TaskAdapter.GetMercenary(MercConstId.泽瑞拉, "快速治疗", 0),
								TaskAdapter.GetMercenary(MercConstId.安娜科德拉, "野兽回复", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.加尔鲁什_地狱咆哮:
					{
					}
					break;


				case MercConstId.加拉克苏斯大王:
					{
						//加拉克苏斯大王 任务11:地狱火顺劈
						//加拉克苏斯大王 任务10:邪能烈焰
						if (title.Contains("地狱火顺劈") || title.Contains("邪能烈焰"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "加拉克苏斯之拳", 1),
								TaskAdapter.GetMercenary(MercConstId.玛诺洛斯, "恐惧嚎叫", 0),
								TaskAdapter.GetMercenary(MercConstId.拉索利安, "巨型大恶魔", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.厨师曲奇:
					{
						//厨师曲奇 任务17:船上的厨子
						if (title.Contains("船上的厨子"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.海盗帕奇斯, null, 0),
								TaskAdapter.GetMercenary(mercenaryId, null, 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.变装大师:
					{
					}
					break;


				case MercConstId.古夫_符文图腾:
					{
						//古夫 任务14
						if (title.Contains("带刺的自然"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "活体荆棘", 0),
								TaskAdapter.GetMercenary(MercConstId.布鲁坎, "陷足泥泞", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.古尔丹:
					{
					}
					break;


				case MercConstId.吉安娜_普罗德摩尔:
					{
						// 吉安娜·普罗德摩尔 任务12
						if (title.Contains("千钧一发"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(mercenaryId, "浮冰术", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.塔姆辛_罗姆:
					{
						//塔姆辛·罗姆 任务10
						if (title.Contains("证明我的价值"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "暗影之幕", 0),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
							}));
							return;
						}
					}
					break;


				case MercConstId.塔维什_雷矛:
					{
						//塔维什·雷矛 任务14:当心脚下
						if (title.Contains("当心脚下"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "爆炸陷阱", 2),
								TaskAdapter.GetMercenary(MercConstId.瓦罗克_萨鲁法尔, "旋风斩", 1),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
							}));
							return;
						}
					}
					break;


				case MercConstId.奈法利安:
					{
						//奈法利安 任务2:多彩龙，完美的龙
						if (title.Contains("完美的龙"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "多彩能量", 0, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
						//奈法利安 任务12 
						if (title.Contains("暗影烈焰"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "暗影烈焰", 1),
								TaskAdapter.GetMercenary(MercConstId.希奈丝特拉,"暮光灭绝", 0),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)
							}));
							return;
						}
						//奈法利安 任务17
						if (title.Contains("还算有用"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-2", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId,"多彩能量", 1),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆,"光明圣印",1),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯,"暗影之爪",2)
							}));
							return;
						}
					}
					break;


				case MercConstId.奔波尔霸:
					{
					}
					break;


				case MercConstId.奥妮克希亚:
					{
						//奥妮克希亚 任务2:吸气！
						if (title.Contains("吸气"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "H2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "深呼吸", 1)
							}));
							return;
						}
						//奥妮克希亚 任务16:团本首领下场
						//奥妮克希亚 任务10:喷吐火焰
						if (title.Contains("喷吐火焰") || title.Contains("团本首领下场"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "清理巢穴", 0),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
							}));
							return;
						}
					}
					break;


				case MercConstId.娜塔莉_塞林:
					{

						//娜塔莉·赛琳 任务4
						if (title.Contains("圣光治愈一切"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "咒逐", 0),
								TaskAdapter.GetMercenary(mercenaryId, "祈福", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.安东尼达斯:
					{

						// 安东尼达斯 任务12
						if (title.Contains("火焰滚滚"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.赤精, "振奋之歌", 1),
								TaskAdapter.GetMercenary(mercenaryId, "火球风暴", 2)
							}));
							return;
						}

						// 安东尼达斯 任务9
						if (title.Contains("保护肯瑞托"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.拉格纳罗斯, "熔岩冲击", 2),
								TaskAdapter.GetMercenary(mercenaryId, "烈焰风暴", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.安娜科德拉:
					{
					}
					break;


				case MercConstId.安度因_乌瑞恩:
					{
					}
					break;


				case MercConstId.尤朵拉:
					{
						//尤朵拉 任务9:火炮齐射！
						//尤朵拉 任务16:炮灰
						if (title.Contains("炮灰") || title.Contains("火炮齐射"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "H1-1", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "准备火炮", 1)
							}));
							return;
						}

						//尤朵拉 任务3:远洋助手
						//尤朵拉 任务14:飓风营救
						if (title.Contains("远洋助手") || title.Contains("飓风营救"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "掩护射击", 1, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
					}
					break;


				case MercConstId.尤格_萨隆:
					{
					}
					break;


				case MercConstId.巫妖王:
					{
						//巫妖王 任务9:你们都将臣服
						if (title.Contains("你们都将臣服"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "凋零缠绕", 1, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
					}
					break;


				case MercConstId.巴琳达_斯通赫尔斯:
					{
					}
					break;


				case MercConstId.布莱恩_铜须:
					{
					}
					break;


				case MercConstId.布鲁坎:
					{
						//布鲁坎 任务17:一点点电
						if (title.Contains("一点点电"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "陷足泥泞", 1),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.希奈丝特拉:
					{
						//希奈丝特拉 任务2
						if (title.Contains("何必忧伤"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "法力壁垒", 1, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
					}
					break;


				case MercConstId.希尔瓦娜斯_风行者:
					{
						//风行者 任务 12
						if (title.Contains("无论死活"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "重拾灵魂", 2),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯, "构筑魔像", 2),
								TaskAdapter.GetMercenary(MercConstId.海盗帕奇斯, "眼魔船工", 1)
							}));
							return;
						}
						//希尔瓦娜斯·风行者 任务3:瞄准叛徒
						//希尔瓦娜斯·风行者 任务9:如此狡诈
						if (title.Contains("瞄准叛徒") || title.Contains("如此狡诈"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "为了女王", 1)
							}));
							return;
						}

						//希尔瓦娜斯·风行者 任务17:女妖之怒
						if (title.Contains("女妖之怒"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "重拾灵魂", 0),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯, "构筑魔像", 2),
								TaskAdapter.GetMercenary(MercConstId.海盗帕奇斯, "眼魔船工", 1)
							}));
							return;
						}

					}
					break;


				case MercConstId.库尔特鲁斯_陨烬:
					{
						//库尔特鲁斯·陨烬 任务10:独自训练
						if (title.Contains("独自训练"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "屠魔者", 2),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆, "光明圣印", 1),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆, "嘲讽", 1),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯, "暗影之爪", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.德雷克塔尔:
					{
						//德雷克塔尔 任务14:邪能的力量
						if (title.Contains("邪能的力量"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "邪能腐蚀", 2),
								TaskAdapter.GetMercenary(mercenaryId, "萨满教义", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
							}));
							return;
						}
						//德雷克塔尔 任务17:淬霜之刃
						if (title.Contains("淬霜之刃"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-2", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, null, 0),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆, "光明圣印", 1),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯, "暗影之爪", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.恩佐斯:
					{
					}
					break;


				case MercConstId.拉希奥:
					{
						//拉希奥 任务14:展开双翼
						//拉希奥 任务3:黑王子之战
						if (title.Contains("展开双翼") || title.Contains("黑王子之战"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "真正形态", 1),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.赤精, "振奋之歌", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.拉格纳罗斯:
					{
						//拉格纳罗斯 任务10 
						if (title.Contains("全部烧光"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "熔岩冲击", 0),
								TaskAdapter.GetMercenary(MercConstId.安东尼达斯, null, 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.拉索利安:
					{
						//拉索利安 任务12:势均力敌？哈！
						//拉索利安 任务1:无坚不摧之力
						if (title.Contains("势均力敌") || title.Contains("无坚不摧"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "闪电军团", 0),
								TaskAdapter.GetMercenary(MercConstId.玛诺洛斯, null, 0)
							}));
							return;
						}

						//拉索利安 任务14:战场主宰
						if (title.Contains("战场主宰"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId,"巨型大恶魔", 0),
							}));
							return;
						}
						//拉索利安 任务17
						if (title.Contains("巨型邪魔"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "巨型大恶魔", 0),
								TaskAdapter.GetMercenary(MercConstId.洛卡拉, "进攻集结", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.指挥官沃恩:
					{
						//指挥官沃恩 任务9:燃棘必胜
						if (title.Contains("燃棘必胜"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(mercenaryId, "火焰吐息", 0)
							}));
							return;
						}
						//指挥官沃恩 任务12:他们想挨斧头了
						//指挥官沃恩 任务17:猛斧与盟友
						if (title.Contains("他们想挨斧头了") || title.Contains("猛斧与盟友"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "飞斧投掷", 0),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.提里奥_弗丁:
					{
						//弗丁 任务2 任务14
						if (title.Contains("王者祝福") || title.Contains("银色北伐军"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "王者祝福", 0, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
					}
					break;


				case MercConstId.斯卡布斯_刀油:
					{
						//斯卡布斯·刀油 任务1 任务9
						if (title.Contains("秘密探员") || title.Contains("二加二等于五"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "战术打击", 0),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)

							}));
							return;
						}
					}
					break;


				case MercConstId.斯尼德:
					{
						//斯尼德 任务9
						if (title.Contains("手脚并用"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-1", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "缴械", 0),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.提里奥_弗丁, "谦逊制裁", 0)
							}));
							return;
						}
						//斯尼德 任务12 任务14
						if (title.Contains("一刀两断") || title.Contains("乌合之众"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "滋啦", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.暴龙王克鲁什:
					{
						//暴龙王克鲁什 任务12:暴龙之王
						if (title.Contains("暴龙之王"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "顶级捕食者", 2),
								TaskAdapter.GetMercenary(MercConstId.洛卡拉, "进攻集结", 1),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯, "暗影之爪", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.格罗玛什_地狱咆哮:
					{
						//格罗玛什·地狱咆哮 任务9:暂缓苦痛
						if (title.Contains("暂缓苦痛"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "战斗怒火", 2),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆, "光明圣印", 1),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯, "暗影之爪", 2)
							}));
							return;
						}

						//格罗玛什·地狱咆哮 任务14:玛诺洛斯的许诺
						if (title.Contains("玛诺洛斯的许诺"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-1", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "战斗怒火", 2),
								TaskAdapter.GetMercenary(MercConstId.厨师曲奇, "小鱼快冲", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.格鲁尔:
					{
					}
					break;


				case MercConstId.梵妮莎_范克里夫:
					{
						//梵妮莎·范克里夫 任务14:一刃双雕
						if (title.Contains("一刃双雕"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "临时武器", 2),
								TaskAdapter.GetMercenary(MercConstId.乌瑟尔_光明使者, "保护祝福", 0),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
							}));
							return;
						}
						//梵妮莎·范克里夫 任务9:夺刀斩将
						if (title.Contains("夺刀斩将"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-1", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "剽窃轰击", 0),
								TaskAdapter.GetMercenary(MercConstId.提里奥_弗丁, "谦逊制裁", 0),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.死亡之翼:
					{
					}
					break;


				case MercConstId.沃金:
					{
						//沃金 任务9:暗影秘法
						//沃金 任务14:沃金的意志
						if (title.Contains("暗影秘法") || title.Contains("沃金的意志"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯, "构筑魔像", 0),
								TaskAdapter.GetMercenary(mercenaryId, "暗影涌动", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.泰兰德_语风:
					{
					}
					break;


				case MercConstId.泰瑞尔:
					{
						//泰瑞尔 任务2
						if (title.Contains("巨大的谎言"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "1-10", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.巴琳达_斯通赫尔斯, "烈焰之刺", 1),
								TaskAdapter.GetMercenary(MercConstId.迦顿男爵,"地狱火", 1),
								TaskAdapter.GetMercenary(MercConstId.拉格纳罗斯,"死吧，虫子", 2),
								TaskAdapter.GetMercenary(MercConstId.冰雪之王洛克霍拉, null, 1),
								TaskAdapter.GetMercenary(MercConstId.吉安娜_普罗德摩尔, "浮冰术", 2),
								TaskAdapter.GetMercenary(mercenaryId,"圣剑挺击", 0)
							}));
							return;
						}
						//泰瑞尔 任务10
						if (title.Contains("黑暗流亡者"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-9", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.巴琳达_斯通赫尔斯, "烈焰之刺", 1),
								TaskAdapter.GetMercenary(MercConstId.迦顿男爵,"地狱火", 1),
								TaskAdapter.GetMercenary(MercConstId.拉格纳罗斯,"死吧，虫子", 2),
								TaskAdapter.GetMercenary(MercConstId.冰雪之王洛克霍拉, null, 1),
								TaskAdapter.GetMercenary(MercConstId.吉安娜_普罗德摩尔, "浮冰术", 2),
								TaskAdapter.GetMercenary(mercenaryId,"圣剑挺击", 0)
							}));
							return;
						}
						//泰瑞尔 任务12
						if (title.Contains("恶魔再临"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.巴琳达_斯通赫尔斯, "烈焰之刺", 1),
								TaskAdapter.GetMercenary(MercConstId.迦顿男爵,"地狱火", 1),
								TaskAdapter.GetMercenary(MercConstId.拉格纳罗斯,"死吧，虫子", 2),
								TaskAdapter.GetMercenary(MercConstId.冰雪之王洛克霍拉, null, 1),
								TaskAdapter.GetMercenary(MercConstId.吉安娜_普罗德摩尔, "浮冰术", 2),
								TaskAdapter.GetMercenary(mercenaryId,"圣剑挺击", 0)
							}));
							return;
						}
						//泰瑞尔 任务14
						if (title.Contains("夺魂之镰"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H5-2", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.巴琳达_斯通赫尔斯, "烈焰之刺", 1),
								TaskAdapter.GetMercenary(MercConstId.迦顿男爵,"地狱火", 1),
								TaskAdapter.GetMercenary(MercConstId.拉格纳罗斯,"死吧，虫子", 2),
								TaskAdapter.GetMercenary(MercConstId.冰雪之王洛克霍拉, null, 1),
								TaskAdapter.GetMercenary(MercConstId.吉安娜_普罗德摩尔, "浮冰术", 2),
								TaskAdapter.GetMercenary(mercenaryId,"圣剑挺击", 0)

							}));
							return;
						}
					}
					break;


				case MercConstId.泽瑞拉:
					{
					}
					break;


				case MercConstId.洛卡拉:
					{
						//洛卡拉 任务9
						if (title.Contains("新的任务"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "部族战争", 0),
								TaskAdapter.GetMercenary(MercConstId.剑圣萨穆罗, null, 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.海巫扎尔吉拉:
					{
					}
					break;


				case MercConstId.海盗帕奇斯:
					{
					}
					break;


				case MercConstId.深水领主卡拉瑟雷斯:
					{
					}
					break;


				case MercConstId.游学者周卓:
					{
					}
					break;


				case MercConstId.滑矛领主:
					{
						//滑矛领主 任务3:丢进垃圾箱
						//滑矛领主 任务10:那就是垃圾
						if (title.Contains("丢进垃圾箱") || title.Contains("那就是垃圾"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-1", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "处理垃圾", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.厨师曲奇, "小鱼快冲", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.潮汐主母阿茜萨:
					{
						//潮汐主母阿茜萨 任务3:以艾萨拉之名
						//潮汐主母阿茜萨 任务10:水流之力
						if (title.Contains("以艾萨拉之名") || title.Contains("水流之力"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "俘获之潮", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.赤精, "振奋之歌", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.火车王里诺艾:
					{
					}
					break;


				case MercConstId.玉珑:
					{
						//玉珑 任务12:成长与新生
						if (title.Contains("成长与新生"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-1", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "青玉劲风", 0),
								TaskAdapter.GetMercenary(MercConstId.剑圣萨穆罗, "二连击", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.玛法里奥_怒风:
					{
						//玛法里奥·怒风 任务3:自然力量
						if (title.Contains("自然力量"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "大德鲁伊的召唤", 1, 0),
							}));
							return;
						}
					}
					break;


				case MercConstId.玛维_影歌:
					{
					}
					break;


				case MercConstId.玛诺洛斯:
					{
						//玛诺洛斯 任务12:愚蠢的弱者
						if (title.Contains("愚蠢的弱者"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "邪能抽笞", 1),
								TaskAdapter.GetMercenary(MercConstId.泽瑞拉, "快速治疗", 0)
							}));
							return;
						}
						//玛诺洛斯 任务14:让他们学会畏惧
						if (title.Contains("让他们学会畏惧"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "恐惧嚎叫", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.珑心:
					{
						// 珑心	任务3 任务10
						if (title.Contains("远古洞窟") || title.Contains("修习飞举"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "群星簇拥", 1, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
					}
					break;


				case MercConstId.瓦丝琪女士:
					{
					}
					break;


				case MercConstId.瓦尔登_晨拥:
					{
						//瓦尔登·晨拥 任务9 
						if (title.Contains("学术道德"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "冰枪术", 0),
								TaskAdapter.GetMercenary(MercConstId.吉安娜_普罗德摩尔, "水元素", 1),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)
							}));
							return;
						}
						//瓦尔登·晨拥 任务10
						if (title.Contains("调节温度"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "冰枪术", 1),
								TaskAdapter.GetMercenary(mercenaryId, "急速冰冻", 1),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(MercConstId.赤精, "振奋之歌", 1),
							}));
							return;
						}
						//瓦尔登·晨拥 任务12
						if (title.Contains("附加影响"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-2", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "冰风暴", 0),
								TaskAdapter.GetMercenary(MercConstId.冰雪之王洛克霍拉, null, 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.瓦罗克_萨鲁法尔:
					{
						//瓦罗克·萨鲁法尔 任务12:全力一击
						if (title.Contains("全力一击"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "动员打击", 0),
								TaskAdapter.GetMercenary(MercConstId.洛卡拉, "进攻集结", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.瓦莉拉_萨古纳尔:
					{
					}
					break;


				case MercConstId.瓦里安_乌瑞恩:
					{
						//瓦里安·乌瑞恩 任务3 任务17
						if (title.Contains("为了暴风城") || title.Contains("屹立不倒"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 4, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "反击", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.砮皂:
					{
					}
					break;


				case MercConstId.神谕者摩戈尔:
					{
						// 神谕者摩戈尔 任务12
						if (title.Contains("鲜血淋漓"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "鱼人弹幕", 1),
								TaskAdapter.GetMercenary(40, "邪鳍导航员", 1),
								TaskAdapter.GetMercenary(149, "小鱼快冲", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.穆克拉:
					{
						//穆克拉 任务17:家族纽带
						if (title.Contains("家族纽带"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "H1-1", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "原始之力", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.穆坦努斯:
					{
						//穆坦努斯 任务3:鸡肉味
						//穆坦努斯 任务10:饥不可耐
						//穆坦努斯 任务17:每日一鱼人
						if (title.Contains("鸡肉味") || title.Contains("饥不可耐") || title.Contains("每日一鱼人"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "吞噬", 0),
								TaskAdapter.GetMercenary(mercenaryId, "鳞甲嘲讽", 2),
								TaskAdapter.GetMercenary(MercConstId.老瞎眼, "老蓟皮", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.空军上将罗杰斯:
					{
						// 空军上将罗杰斯 任务2
						if (title.Contains("列队飞行"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "战术大师", 0, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
					}
					break;


				case MercConstId.米尔豪斯_法力风暴:
					{
						//米尔豪斯_法力风暴 任务17
						if (title.Contains("大箭就是好箭"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "奥术箭", 0),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
							}));
							return;
						}
					}
					break;


				case MercConstId.老瞎眼:
					{
						//老瞎眼 任务9
						if (title.Contains("鱼类学"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId,"老蓟皮",2)
							}));
							return;
						}
						//老瞎眼 任务12
						if (title.Contains("鱼多势众"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId,"鱼人入侵",0),
								TaskAdapter.GetMercenary(MercConstId.厨师曲奇,null,0),
								TaskAdapter.GetMercenary(MercConstId.神谕者摩戈尔,null,0)
							}));
							return;
						}
					}
					break;


				case MercConstId.考内留斯_罗姆:
					{
						//考内留斯·罗姆 任务2:我来承受伤害
						//考内留斯·罗姆 任务10:进攻与收获
						if (title.Contains("我来承受伤害") || title.Contains("进攻与收获"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-2", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(mercenaryId, "坚守前线", 1),
								TaskAdapter.GetMercenary(MercConstId.布鲁坎, "闪电箭", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.艾德温_迪菲亚首脑:
					{
						//艾德温·迪菲亚首脑 任务11 任务17
						if (title.Contains("致命一击") || title.Contains("身先士卒"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "首脑的悬赏", 2),
								TaskAdapter.GetMercenary(MercConstId.海盗帕奇斯, null, 0),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),

							}));
							return;
						}
					}
					break;


				case MercConstId.艾萨拉女王:
					{
					}
					break;


				case MercConstId.范达尔_雷矛:
					{
						//范达尔·雷矛 任务10:我们必胜
						if (title.Contains("我们必胜"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-2", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId,"天神下凡", 1),
								TaskAdapter.GetMercenary(mercenaryId,"向前推进", 1),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆,"光明圣印",1),
							}));
							return;
						}
						//范达尔·雷矛 任务17 
						if (title.Contains("拼尽全力"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId,"向前推进", 1),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆,"光明圣印",1),
					TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯,"暗影之爪",2)
							}));
							return;
						}
					}
					break;


				case MercConstId.萨尔:
					{
					}
					break;


				case MercConstId.贝恩_血蹄:
					{
					}
					break;


				case MercConstId.赤精:
					{
					}
					break;


				case MercConstId.迦顿男爵:
					{
						//迦顿男爵 任务12:烧烤弱鸡
						if (title.Contains("烧烤弱鸡"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "活体炸弹", 1),
								TaskAdapter.GetMercenary(MercConstId.厨师曲奇, "小鱼快冲", 0),
								TaskAdapter.GetMercenary(MercConstId.安东尼达斯, "烈焰风暴", 1)
							}));
							return;
						}
						//迦顿男爵 任务10:侵略如火
						//迦顿男爵 任务14:翻腾火流
						if (title.Contains("侵略如火") || title.Contains("翻腾火流"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "热力迸发", 0),
								TaskAdapter.GetMercenary(MercConstId.安东尼达斯, "火球术", 0),
								TaskAdapter.GetMercenary(MercConstId.拉格纳罗斯, "熔岩冲击", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.迪亚波罗:
					{
						//迪亚波罗 任务12:死亡降临
						if (title.Contains("死亡降临"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "火焰践踏", 0),
								TaskAdapter.GetMercenary(MercConstId.厨师曲奇, "小鱼快冲", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.重拳先生:
					{
						//重拳先生 任务14:铁脚无情
						if (title.Contains("铁脚无情"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-6", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.洛卡拉, "进攻集结", 1, 0, 0),
								TaskAdapter.GetMercenary(mercenaryId, "落水追击", 0),
								TaskAdapter.GetMercenary(MercConstId.海盗帕奇斯, "眼魔船长", 1)
							}));
							return;
						}
					}
					break;


				case MercConstId.钩牙船长:
					{
					}
					break;


				case MercConstId.闪狐:
					{
						//闪狐 任务3:现在归我了
						if (title.Contains("现在归我了"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "防护之戒", 2),
								TaskAdapter.GetMercenary(mercenaryId, "古树的坚韧", 2),
								TaskAdapter.GetMercenary(mercenaryId, "古树生长", 2),
								TaskAdapter.GetMercenary(mercenaryId, "古树知识", 2),
								TaskAdapter.GetMercenary(mercenaryId, "攻击", 2),
								TaskAdapter.GetMercenary(mercenaryId, "群体缠绕", 2),
								TaskAdapter.GetMercenary(mercenaryId, "树皮肌肤", 2),
								TaskAdapter.GetMercenary(mercenaryId, "大地的敌意", 2)

							}));
							return;
						}

						//闪狐 任务14:唰！
						if (title.Contains("唰！"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0),
								TaskAdapter.GetMercenary(mercenaryId, "法力闪现", 1),
								TaskAdapter.GetMercenary(MercConstId.贝恩_血蹄, "大地母亲之怒", 2),
								TaskAdapter.GetMercenary(MercConstId.贝恩_血蹄, "治疗链", 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.阿莱克丝塔萨:
					{
						//阿莱克丝塔萨 任务9 
						if (title.Contains("生命守护者"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "巨龙吐息", 0, -1, TARGETTYPE.FRIENDLY)
							}));
							return;
						}
						//阿莱克丝塔萨 任务17
						if (title.Contains("他们的力量属于我"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "红龙女王的计策", 1),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "黄金猿", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "指引道路", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "开启任务", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "躲避毒镖", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "丛林导航", 2),
								TaskAdapter.GetMercenary(MercConstId.伊莉斯_逐星, "摆脱滚石", 2),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)
							}));
							return;
						}
						//阿莱克丝塔萨 任务12 任务14
						if (title.Contains("一举两得") || title.Contains("蹈踏火焰"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "烈焰猛击", 0),
								TaskAdapter.GetMercenary(MercConstId.玉珑, "玉火打击", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.雪怒:
					{

						//雪怒 任务12:往日旧梦
						if (title.Contains("往日旧梦"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "伏虎闪雷", 2),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆, "光明圣印", 1),
								TaskAdapter.GetMercenary(MercConstId.穆克拉, "原始之力", 0)
							}));
							return;
						}
						//雪怒 任务16
						if (title.Contains("战斗热血"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H1-2", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId,"白虎飞扑", 1),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆,"光明圣印",1),
								TaskAdapter.GetMercenary(MercConstId.魔像师卡扎库斯,"暗影之爪",2)
							}));
							return;
						}
					}
					break;


				case MercConstId.雷克萨:
					{
						//雷克萨 任务17:唯一的朋友
						if (title.Contains("唯一的朋友"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "动物伙伴", 2),
								TaskAdapter.GetMercenary(MercConstId.穆克拉, null, 2)
							}));
							return;
						}
					}
					break;


				case MercConstId.雷诺_杰克逊:
					{
					}
					break;


				case MercConstId.鞭笞者特里高雷:
					{
						//任务2:无情抽笞
						if (title.Contains("无情抽笞"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "2-5", new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(MercConstId.考内留斯_罗姆, "坚守前线", 0),
								TaskAdapter.GetMercenary(mercenaryId, "反冲", 1),
								TaskAdapter.GetMercenary(MercConstId.凯瑞尔_罗姆, "嘲讽", 0)
							}));
							return;
						}
					}
					break;


				case MercConstId.魔像师卡扎库斯:
					{
					}
					break;

				case MercConstId.卡德加:
					{
						//任务9 - 搅热事态
						//任务14 - 臻于完美
						if (title.Contains("搅热事态") ||
							title.Contains("臻于完美"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "炉火", 2),
							}));
							return;
						}
						//任务10 - 然后降温
						if (title.Contains("然后降温"))
						{
							tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
							{
								TaskAdapter.GetMercenary(mercenaryId, "暴风雪", 1),
							}));
							return;
						}
					}
					break;

			}


			//回复生命类任务
			//娜塔莉·塞林 任务17:平衡倾斜
			//先知维伦 任务14:纯净圣光
			//光明之翼 任务17:治疗朋友
			//光明之翼 任务11:我们交朋友吧
			//希奈丝特拉 任务12:低语显现
			//库尔特鲁斯·陨烬 任务14:包扎伤口
			//阿莱克丝塔萨 任务9:生命守护者
			//神谕者摩戈尔 任务14:耐心取胜
			if (title.Contains("平衡倾斜") || title.Contains("纯净圣光") || title.Contains("治疗朋友") ||
				title.Contains("我们交朋友吧") || title.Contains("低语显现") || title.Contains("包扎伤口") ||
				title.Contains("生命守护者") || title.Contains("耐心取胜"))
			{

				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, "H2-5", new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(MercConstId.光明之翼,"妖精之尘", 1),
					TaskAdapter.GetMercenary(MercConstId.赤精,"振奋之歌", 1),
					TaskAdapter.GetMercenary(MercConstId.泽瑞拉,"快速治疗", 0,-1,TARGETTYPE.FRIENDLY)
				}));
				return;
			}
			//杀恶魔
			if (desc.Contains("击败") && desc.Contains("个恶魔"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "2-6", new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			//杀龙
			if ((desc.Contains("击败") || desc.Contains("消灭")) && desc.Contains("条龙"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "4-1", new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			//杀野兽
			if (desc.Contains("击败") && desc.Contains("只野兽"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "H1-1", new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			//杀元素
			if (desc.Contains("击败") && desc.Contains("元素"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "H1-2", new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			//杀鱼人
			if (desc.Contains("消灭") && desc.Contains("个鱼人"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "7-1", new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}

			//加快技能速度
			if (desc.Contains("加快友方技能的速度值总") || desc.Contains("使一个友方技能的速度值加快"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 5, "2-5", TaskAdapter.GetQuickMercenary(mercenaryId)));
				return;
			}

			//巨魔造成伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("使用巨魔造成"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.沃金.m_id, "暗影涌动", 1)
				}));
				return;
			}
			//海盗造成伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("使用海盗造成"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.海盗帕奇斯.m_id, "眼魔船长", 0)
				}));
				return;
			}
			//恶魔造成伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("使用恶魔造成"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.拉索利安.m_id, "巨型大恶魔", 0)
				}));
				return;
			}
			//野兽造成伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("使用野兽造成"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.闪狐.m_id, null, 0)
				}));
				return;
			}
			//元素造成伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("使用元素造成"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.冰雪之王洛克霍拉.m_id, null, 0)
				}));
				return;
			}
			//龙造成伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("使用龙造成"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.奈法利安.m_id,"龙人突袭",1)

				}));
				return;
			}
			//人类造成伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("使用人类造成"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.安东尼达斯.m_id, "烈焰风暴", 1)

				}));
				return;
			}
			//造成神圣伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("神圣伤害"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.泽瑞拉.m_id, null, 0)
				}));
				return;
			}
			//造成冰霜伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("冰霜伤害"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.冰雪之王洛克霍拉.m_id,"冰雹", 1)
				}));
				return;
			}
			//造成火焰伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("火焰伤害"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.安东尼达斯.m_id, "火球术", 0),
				}));
				return;
			}
			//造成暗影伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("暗影伤害"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.沃金.m_id, "虚弱诅咒", 0),
				}));
				return;
			}
			//造成邪能伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("邪能伤害"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.玛诺洛斯.m_id, null, 0),
				}));
				return;
			}
			//自然伤害
			if (desc.Contains("使用包含此佣兵的队伍") && desc.Contains("自然伤害"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 0, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0),
					TaskAdapter.GetMercenary(MercConst.布鲁坎.m_id, "闪电箭", 0),
				}));
				return;
			}
			//英雄难度相关
			if (desc.Contains("英雄难度"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 1, "H1-1", new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			if (desc.Contains("完成") && desc.Contains("个悬赏"))
			{
				LettuceMercenary mercenary = UtilsMerc.GetMercenaryFromId(mercenaryId);
				if (desc.Contains("30级时") && !mercenary.IsMaxLevel())
				{
					tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 10, new MercenaryEntity[]
					{
						TaskAdapter.GetMercenary(mercenaryId, null, 0)
					}));
				}
				else
				{
					tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, 10, "H1-1", new MercenaryEntity[]
					{
						TaskAdapter.GetMercenary(mercenaryId, null, 0)
					}));
				}
				return;
			}

			//抵达神秘选项，赐福或灵魂医者处
			if (desc.Contains("赐福或灵魂医者"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				TaskUtils.HaveTaskDocter = true;
				TaskUtils.HaveTaskCaster = true;
				TaskUtils.HaveTaskFighter = true;
				TaskUtils.HaveTaskTank = true;
				return;
			}

			//灵魂医者
			if (desc.Contains("利用灵魂医者"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				TaskUtils.HaveTaskDocter = true;
				return;
			}
			//赐福
			if (desc.Contains("利用赐福"))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				if (desc.Contains("施法者"))
					TaskUtils.HaveTaskCaster = true;
				else if (desc.Contains("斗士"))
					TaskUtils.HaveTaskFighter = true;
				else if (desc.Contains("护卫"))
					TaskUtils.HaveTaskTank = true;
				return;
			}
			int num = desc.IndexOf("$ability(", StringComparison.Ordinal);
			if (num == -1)
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			int num2 = num + "$ability(".Length;
			int num3 = desc.IndexOf(")", num2, StringComparison.Ordinal);
			if (num3 == -1)
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			string[] array = desc.Substring(num2, num3 - num2).Split(new char[]
			{
				','
			});
			int num4;
			int num5;
			if (!int.TryParse(array[0], out num4) || !int.TryParse(array[1], out num5))
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			LettuceMercenaryDbfRecord record = GameDbf.LettuceMercenary.GetRecord(mercenaryId);
			if (num4 >= record.LettuceMercenarySpecializations.Count)
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			LettuceMercenarySpecializationDbfRecord lettuceMercenarySpecializationDbfRecord = record.LettuceMercenarySpecializations[num4];
			if (num5 >= lettuceMercenarySpecializationDbfRecord.LettuceMercenaryAbilities.Count)
			{
				tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
				{
					TaskAdapter.GetMercenary(mercenaryId, null, 0)
				}));
				return;
			}
			int lettuceAbilityId = lettuceMercenarySpecializationDbfRecord.LettuceMercenaryAbilities[num5].LettuceAbilityId;
			LettuceAbilityDbfRecord record2 = GameDbf.LettuceAbility.GetRecord(lettuceAbilityId);
			tasks.Add(TaskAdapter.GetTask(progressMessage, taskId, new MercenaryEntity[]
			{
				TaskAdapter.GetMercenary(mercenaryId, record2.AbilityName, GetEquipEnHanceSkill(record2.AbilityName))
			}));
		}

		public static void SetMainLineTask(List<Task> tasks, string desc)
		{
			UtilsLog.Log($"[主线] {desc}");

			Regex regex = new Regex(@"完成(\D.+)悬赏。$");
			Match match = regex.Match(desc);
			if (match.Groups.Count == 2)
			{
				string mapName = UtilsMap.GetMapByBoss(match.Groups[1].Value)?.m_name ?? "";
				tasks.Add(TaskAdapter.GetTask("", -1, 0, mapName, null));
				return;
			}

			switch (desc)
			{
				//贫瘠之地
				case "击败8只野兽。":
					tasks.Add(TaskAdapter.GetTask("", -1, 0, "1-6", null));
					break;

				//费伍德森林
				case "在费伍德森林击败20个敌人。":
					tasks.Add(TaskAdapter.GetTask("", -1, 0, "2-1", null));
					break;
				case "击败15个恶魔。":
					tasks.Add(TaskAdapter.GetTask("", -1, 0, "2-6", null));
					break;

				//冬泉谷
				case "击败12个熊怪。":
				case "在完成3个悬赏。":
					tasks.Add(TaskAdapter.GetTask("", -1, 0, "3-1", null));
					break;

				//黑石山
				case "在造成2000点伤害。":
				case "在黑石山击败50个敌人。":
				case "在黑石山击败60个敌人。":
				case "在黑石山造成2500点伤害。":
					tasks.Add(TaskAdapter.GetTask("", -1, 0, "4-1", null));
					break;
				case "在黑石山击败25个元素。":
					tasks.Add(TaskAdapter.GetTask("", -1, 0, "4-4", null));
					break;

				//奥特兰克山谷
				case "在奥特兰克山谷击败25个敌人。":
				case "在奥特兰克造成2000点伤害。":
					tasks.Add(TaskAdapter.GetTask("", -1, 0, "5-1", null));
					break;
			}
		}

		// Token: 0x06000054 RID: 84 RVA: 0x00005BB0 File Offset: 0x00003DB0
		private static MercenaryEntity[] GetQuickMercenary(int mercenaryId)
		{
			List<MercenaryEntity> list = new List<MercenaryEntity>();
			foreach (LettuceAbility lettuceAbility in CollectionManager.Get().GetMercenary((long)mercenaryId, false, true).m_abilityList)
			{
				CardDbfRecord cardRecord = GameDbf.GetIndex().GetCardRecord(lettuceAbility.GetCardId());
				string @string = cardRecord.TextInHand.GetString(Locale.zhCN);
				if (@string != null && @string.Contains("速度值") && @string.Contains("加快"))
				{
					string string2 = cardRecord.Name.GetString(Locale.zhCN);
					list.Add(TaskAdapter.GetMercenary(mercenaryId, string2.Substring(0, string2.Length - 1), 0));
				}
			}
			return list.ToArray();
		}

		private static Task GetTask(string progress, int id, int priority, string map, params MercenaryEntity[] mercenaries)
		{
			return new Task
			{
				water = ++m_globalWater,
				Priority = priority,
				Map = map,
				Mercenaries = mercenaries?.ToList(),
				Id = id,
				ProgressMessage = progress
			};
		}

		private static Task GetTask(string progress, int id, int priority, params MercenaryEntity[] mercenaries)
		{
			return new Task
			{
				water = ++m_globalWater,
				Id = id,
				Mercenaries = mercenaries?.ToList(),
				Priority = priority,
				ProgressMessage = progress
			};
		}

		private static Task GetTask(string progress, int id, params MercenaryEntity[] mercenaries)
		{
			return new Task
			{
				water = ++m_globalWater,
				Id = id,
				Mercenaries = mercenaries?.ToList(),
				Priority = 5,
				ProgressMessage = progress
			};
		}

		// Token: 0x06000057 RID: 87 RVA: 0x00005CC9 File Offset: 0x00003EC9
		private static MercenaryEntity GetMercenary(int id, string skill = null, int eq = 0, int subskill = -1, TARGETTYPE targettype = TARGETTYPE.UNSPECIFIED)
		{
			return new MercenaryEntity(id, skill, eq, subskill, targettype);
		}

		private static int GetEquipEnHanceSkill(string skill)
		{
			return m_dictSkillEquip.ContainsKey(skill) ? m_dictSkillEquip[skill] : 0;
		}

		private static Dictionary<string, int> m_dictSkillEquip = new Dictionary<string, int>{
			{ "神圣冲击", EquipConst.激励秘典.m_id },//维伦12技能
			{ "裂解之光", EquipConst.受祝福的碎片.m_id },
			{ "致盲之光", EquipConst.强光魔杖.m_id },//泽瑞拉 13技能
			{ "救赎", EquipConst.纯洁长袍.m_id },
			{ "魔爆术", EquipConst.奥术粉尘.m_id },//豪斯13技能
			{ "强能奥术飞弹", EquipConst.魔网之杖.m_id },
			{ "集束暗影", EquipConst.暗影之眼.m_id },//塞林123技能
			{ "集束之光", EquipConst.神圣之眼.m_id },
			{ "咒逐", EquipConst.诺达希尔碎片.m_id },
			{ "精灵吐息", EquipConst.光明之翼的项链.m_id },//光明之翼123技能
			{ "妖精之尘", EquipConst.妖精口袋.m_id },
			{ "相位变换", EquipConst.光明之翼的圆环.m_id },
			{ "热力迸发", EquipConst.熔岩之刃.m_id },//迦顿12技能
			{ "地狱火", EquipConst.焚火印记.m_id },
			{ "闪电箭", EquipConst.雷鸣系带.m_id },//布鲁坎1技能
			{ "符文猛击", EquipConst.盛开菌菇.m_id },//古夫123技能
			{ "活体荆棘", EquipConst.木棘图腾.m_id },
			{ "铁木树皮", EquipConst.土灵护腕.m_id },
			{ "冰风暴", EquipConst.寒冰药水.m_id },//晨拥12技能
			{ "急速冰冻", EquipConst.霜冻之戒.m_id },
			{ "暗影箭", EquipConst.暗影符文.m_id },//塔姆辛12技能
			{ "虚空吞噬者", EquipConst.虚空石.m_id },
			{ "毁灭之雨", EquipConst.玛诺洛斯之血.m_id },//古尔丹23技能
			{ "生命虹吸", EquipConst.灵魂护符.m_id },
			{ "暗影震击", EquipConst.静滞海马.m_id },//沃金12技能
			{ "暗影涌动", EquipConst.沃金战刃.m_id },
			{ "制裁之锤", EquipConst.光明使者.m_id },//乌瑟尔13技能
			{ "复仇之怒", EquipConst.微光肩甲.m_id },
			{ "冰刺", EquipConst.寒冰碎片.m_id },//吉安娜1技能
			{ "火球术", EquipConst.烬核之杖.m_id },//安东尼12技能
			{ "烈焰风暴", EquipConst.烈焰饰环.m_id },
			{ "奥术飞掷", EquipConst.奥术尖牙.m_id },//闪狐12技能
			{ "法力闪现", EquipConst.法力符文.m_id },
			{ "曲奇下厨", EquipConst.钢铁汤勺.m_id },//曲奇2技能
			{ "暗影之爪", EquipConst.魔皇草.m_id }, //卡扎1技能
			{ "天空守卫", EquipConst.浮夸腰带.m_id },//空军上将罗杰斯1技能
			{ "烈焰之歌", EquipConst.烈焰系带.m_id },//赤精12技能
			{ "振奋之歌", EquipConst.赤精之杖.m_id },
			{ "傲慢的凡人", EquipConst.锋刃之爪.m_id },//奥妮克希亚12技能
			{ "深呼吸", EquipConst.更深的呼吸.m_id },
			{ "杀戮命令", EquipConst.迅羽之弓.m_id },//雷克萨123技能
			{ "动物伙伴", EquipConst.熊妈妈之爪.m_id },
			{ "爆炸射击", EquipConst.猎手的步枪.m_id },
			{ "战术打击", EquipConst.军情七处合约.m_id },//刀油123技能
			{ "邪恶挥刺", EquipConst.剥皮刀.m_id },
			{ "暗影之刃", EquipConst.精磨之杖.m_id },
			{ "部族战争", EquipConst.霜狼护身符.m_id },//洛卡拉12技能
			{ "进攻集结", EquipConst.激励头盔.m_id },
			{ "侧翼突击", EquipConst.拳刃.m_id }, //伊利丹12技能
			{ "流放攻击", EquipConst.埃辛诺斯战刃.m_id },
			{ "女妖之箭", EquipConst.哀伤之剑.m_id }, //风行者12技能
			{ "重拾灵魂", EquipConst.灵魂缶.m_id },
			{ "鱼人入侵", EquipConst.泡泡魔杖.m_id }, //老瞎眼123技能
			{ "邪鳍导航员", EquipConst.导航员的护符.m_id },
			{ "老蓟皮", EquipConst.始生鱼人.m_id },
			{ "顶级捕食者", EquipConst.烈焰利爪.m_id },//暴龙王123技能
			{ "惊骇", EquipConst.新鲜的肉.m_id },
			{ "魔暴龙", EquipConst.岩质甲壳.m_id },
			{ "瞄准射击", EquipConst.高能枪弹.m_id },//塔维什·雷矛123 技能
			{ "爆炸陷阱", EquipConst.拉线操纵.m_id },
			{ "捕熊陷阱", EquipConst.拉线操纵.m_id },
			{ "动员打击", EquipConst.萨隆踏靴.m_id },//萨鲁法尔12技能
			{ "旋风斩", EquipConst.狂战士之刃.m_id },
			{ "二连击", EquipConst.燃烧之刃.m_id },//剑圣123技能
			{ "镜像", EquipConst.幻觉饰带.m_id },
			{ "旋风之刃", EquipConst.磨砺之刃.m_id },
			{ "鳞甲嘲讽", EquipConst.炫彩项链.m_id },//吃手手12技能
			{ "吞噬攻击", EquipConst.土灵护甲.m_id },
			{ "火焰吐息", EquipConst.巨龙印记.m_id },//指挥官沃恩23技能
			{ "辟法巨龙", EquipConst.巨龙之爪.m_id },
			{ "毒蛇噬咬", EquipConst.剧毒毒液.m_id },//安娜12技能
			{ "野兽恢复", EquipConst.狂野的徽记.m_id },
			{ "奥术射击", EquipConst.艾露恩的护符.m_id },//泰兰德123技能
			{ "奥术齐射", EquipConst.苍翠反曲弓.m_id },
			{ "艾露恩的赐福", EquipConst.狂野之戒.m_id },
			{ "末日冲锋", EquipConst.恐怖利爪.m_id },//迪亚波罗13技能
			{ "末日", EquipConst.熔岩魔角.m_id },
			{ "首脑的悬赏", EquipConst.公平分配.m_id }, // 迪菲亚首脑23技能
			{ "辅助打击", EquipConst.轮番豪饮.m_id },
			{ "火炮突击", EquipConst.装填武器.m_id },//尤朵拉123
			{ "准备火炮", EquipConst.装填武器.m_id },
			{ "掩护射击", EquipConst.装填武器.m_id },
			{ "致命打击", EquipConst.德雷克塔尔的恩惠.m_id },//加尔范23技能
			{ "破胆怒吼", EquipConst.震耳咆哮.m_id },
			{ "蠕行疯狂", EquipConst.恐惧奇美拉.m_id },//拉希奥12技能
			{ "扫尾", EquipConst.黑龙鳞片.m_id },
			{ "均衡一击", EquipConst.雪怒之矛.m_id },//雪怒123技能
			{ "白虎飞扑", EquipConst.天神胸甲.m_id },
			{ "伏虎闪雷", EquipConst.滚雷护爪.m_id },
			{ "军团爆能", EquipConst.狂怒坠饰.m_id }, //大王
			{ "加拉克苏斯之拳", EquipConst.实击护手.m_id },
			{ "邪能地狱火", EquipConst.邪能核心.m_id },
			{ "眼棱", EquipConst.混乱护符.m_id }, //库尔特鲁斯123
			{ "屠魔者", EquipConst.恶魔卫士.m_id },
			{ "盲目突击", EquipConst.恶魔卫士.m_id },
			{ "热血", EquipConst.血吼.m_id },//格罗玛什·地狱咆哮123
			{ "惊愕猛击", EquipConst.休止饰带.m_id },
			{ "战斗怒火", EquipConst.饮血坠饰.m_id },
			{ "爆裂打击", EquipConst.萨拉迈恩.m_id },//瓦里安·乌瑞恩123
			{ "英勇飞跃", EquipConst.界限之靴.m_id },
			{ "反击", EquipConst.战争旗帜.m_id },
			{ "远征军打击", EquipConst.黎明之锤.m_id },//凯瑞尔123
			{ "嘲讽", EquipConst.圣光秘典.m_id },
			{ "光明圣印", EquipConst.裁决秘典.m_id },
			{ "熔岩冲击", EquipConst.熔火之心.m_id },//拉格纳罗斯123
			{ "死吧，虫子", EquipConst.炽烧符文.m_id },
			{ "陨石术", EquipConst.炽烧符文.m_id },
			{ "先祖勾拳", EquipConst.重生.m_id },//凯恩血蹄123
			{ "坚韧光环", EquipConst.迅捷图腾.m_id },
			{ "大地践踏", EquipConst.雷霆饰带.m_id },
			{ "暴食香蕉", EquipConst.辐射香蕉.m_id },//穆克拉123
			{ "大餐时间", EquipConst.辐射香蕉.m_id },
			{ "原始之力", EquipConst.穆克拉的大表哥.m_id },
			{ "为了部落", EquipConst.毁灭之锤.m_id },//萨尔13
			{ "大酋长的命令", EquipConst.华丽的军号.m_id },
			{ "荣耀决斗", EquipConst.决斗护手.m_id },//加尔鲁什·地狱咆哮123
			{ "部落之力", EquipConst.玛诺洛斯的獠牙.m_id },
			{ "战斗怒吼", EquipConst.兽人的旗帜.m_id },
			{ "奔跑破坏神", EquipConst.深渊领主之杖.m_id },//玛诺洛斯123
			{ "邪能抽笞", EquipConst.邪能尖刺.m_id },
			{ "恐惧嚎叫", EquipConst.邪能魔肺.m_id },
			{ "塞纳里奥波动", EquipConst.活根草之杖.m_id },//玛法里奥·怒风
			{ "纠缠根须", EquipConst.森林徽章.m_id },
			{ "大德鲁伊的召唤", EquipConst.石南草.m_id },
			{ "狂暴攻击", EquipConst.注能琥珀.m_id },//蛇
			{ "反冲", EquipConst.锋锐利爪.m_id },
			{ "再生头颅", EquipConst.再生之鳞.m_id },
			{ "武艺精通" , EquipConst.猛击护手.m_id },//考内留斯123
			{ "坚守前线" , EquipConst.启迪环带.m_id },
			{ "寒冰之噬", EquipConst.霜之哀伤.m_id },//巫妖王12
			{ "凋零缠绕", EquipConst.虚空之踏.m_id },
			{ "嗞啦", EquipConst.加装锯刃.m_id },
			{ "启动电锯", EquipConst.泰坦神铁锯刃.m_id },
			{ "缴械", EquipConst.加装锯刃.m_id },
			{ "重拳猛击", EquipConst.水手帽.m_id },//重拳13
			{ "落水追击", EquipConst.沉重铁锚.m_id },
			{ "剽窃轰击", EquipConst.恐惧之刃.m_id },//梵妮莎·范克里夫
			{ "临时武器", EquipConst.夺刀手.m_id },
			{ "搬运背包", EquipConst.夺刀手.m_id },
			{ "冰雹", EquipConst.刺骨寒风.m_id },//雪王
			{ "冰霜震击", EquipConst.刺骨寒风.m_id },
			{ "雪球", EquipConst.刺骨寒风.m_id },
			{ "雷霆打击", EquipConst.无坚不摧之力.m_id },//范达尔·雷矛
			{ "向前推进", EquipConst.无法撼动之物.m_id },
			{ "天神下凡", EquipConst.无法撼动之物.m_id },
			{ "恐怖利爪", EquipConst.不死者之心.m_id },//死亡之翼
			{ "源质护甲", EquipConst.不朽者之毅.m_id },
		};

		private static int m_globalWater = 0;
	}
}
